package com.hmdp.utils;

/**
 * @author 21829
 */
public interface ILock {
    /**
     * 尝试获取锁
     * @param timeOutSec
     * @return
     */
    public boolean tryLcok(Long timeOutSec);

    /**
     * 释放锁
     */
    public void unLock();
}
